﻿using AutoMapper;
using Durian.API.Application.Commands.Process;
using IMES.Common.Domain.DurianModel;
using IMES.Common.Dtos;
using IMES.Common.Infrastructure;
using MediatR;

namespace Durian.API.Application.Commands.Assembly
{
    public class AssemblyDetailHandler : IRequestHandler<AssemblyDetailCommand, Result>
    {
        private readonly IMapper mapper;
        private readonly ILogger<ProcessManagementCreateHandler> logger;
        private readonly IBaseRepositorys<ProcessManagement> processManagementRepository;
        private readonly IBaseRepositorys<SystemLogs> systemLogsRepository;
        private readonly IBaseRepositorys<Assemblies> assembliesRepository;
        private readonly IBaseRepositorys<OrderProducts> orderProductsRepository;

        public AssemblyDetailHandler(IMapper mapper, ILogger<ProcessManagementCreateHandler> logger, IBaseRepositorys<ProcessManagement> processManagementRepository, IBaseRepositorys<SystemLogs> systemLogsRepository, IBaseRepositorys<Assemblies> assembliesRepository, IBaseRepositorys<OrderProducts> orderProductsRepository)
        {
            this.mapper = mapper;
            this.logger = logger;
            this.processManagementRepository = processManagementRepository;
            this.systemLogsRepository = systemLogsRepository;
            this.assembliesRepository = assembliesRepository;
            this.orderProductsRepository = orderProductsRepository;
        }

        /// <summary>
        /// 产品明细
        /// </summary>
        /// <param name="request"></param>
        /// <param name="cancellationToken"></param>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
        public Task<Result> Handle(AssemblyDetailCommand request, CancellationToken cancellationToken)
        {
            throw new NotImplementedException();
        }
    }
}
